﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaskStop.aspx.cs" Inherits="Ultimus.Web.TaskStop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>流程终止</title>
    <link href="css/style.css" rel="stylesheet" rev="stylesheet" />
    <link href="css/global.css" rel="stylesheet" rev="stylesheet" />
    <script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
      <style type="text/css">
        body
        {
            background-color: White;
        }
        
        #main
        {
            margin-left: auto;
            margin-right: auto;
            margin-top: 2em;
            width: 80%;
        }
        #left
        {
            float: left;
            width: 60%;
        }
        #right
        {
            vertical-align: top;
            text-align: center;
        }
        #brand
        {
            border: 1px solid Black;
            margin-top: 2em;
            margin-left: 2em;
            background-color: #FFFFBB;
            width: 70%;
            height: 150px;
        }
     td
        {
            text-align: right;   
        }
        .textArea
        {
            width: 480px;
            height: 50px;
        }
        .CommonMsg
        {
            width: 480px;
        }
    </style>
    <script type="text/javascript">
        function CheckAll() {
            var taskNo = document.getElementById("txtNo").value;
            var taskTitle = document.getElementById("txtTitile").value;
            var txtHuanjie = document.getElementById("txtHuanjie").value;
            var txtTaskNo = document.getElementById("txtTaskNo").value;
            var txtCloseHuanjie = document.getElementById("txtCloseHuanjie").value;
            var txtExUser = document.getElementById("txtExUser").value;

            var txtExDep = document.getElementById("txtExDep").value;
            var txtExDate = document.getElementById("txtExDate").value;
            var txtExReason = document.getElementById("txtExReason").value;
            var txtExBasis = document.getElementById("txtExBasis").value;
            
            if (taskNo == "") {
                alert("业务编号不能为空！");
                document.getElementById("txtNo").focus();
                return false;
            }
            if (taskTitle == "") {
                alert("流程标题不能为空！");
                document.getElementById("txtTitile").focus();
                return false;
            }
            if (txtHuanjie == "") {
                alert("异常操作所在环节不能为空！");
                document.getElementById("txtHuanjie").focus();
                return false;
            }
            if (txtTaskNo == "") {
                alert("异常操作关闭不能为空！");
                document.getElementById("txtTaskNo").focus();
                return false;
            }
            if (txtExUser == "") {
                alert("异常操作人不能为空！");
                document.getElementById("txtExUser").focus();
                return false;
            }
            if (txtExDep == "") {
                alert("异常操作部门不能为空！");
                document.getElementById("txtExDep").focus();
                return false;
            }

            if (txtExDate == "") {
                alert("异常操作时间不能为空！");
                document.getElementById("txtExDate").focus();
                return false;
            }
            if (txtExReason == "") {
                alert("异常原因不能为空！");
                document.getElementById("txtExReason").focus();
                return false;
            }
            if (txtExBasis == "") {
                alert("异常依据不能为空！");
                document.getElementById("txtExBasis").focus();
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="right">
            <div class="place">
                <div class="placeleft">
                    <i></i>您当前的位置：<a href="">首页</a> >> <strong><b>流程终止</b></strong>
                </div>
                <a href="#" class="shuaxin">刷新</a>
            </div>
            <%--class="currently"  endDate.focus();--%>
        </div>
        <div class="listTable_1">
            <div class="tableTab" id="tabs">
                <div class="place">
                    <div class="placeleft">
                        <ul>
                            <li class="currently" id="li0"><a href="#MyTask">流程终止记录单</a></li>
                           
                        </ul>
                    </div>
                  
                </div>
               <div id="main">
        <div id="left">
            <div id="top">
                <table > 
                <tr><td colspan=4  align="center" style="font-size:14px; font-weight:bold; text-align
                    :center">流程异常记录信息</td></tr>
                    <tr>
                        <td>
                            业务编号：</td>
                        <td>
                           
                            <asp:TextBox ID="txtNo" runat="server"></asp:TextBox>
                           
                        </td>
                        <td>
                            &nbsp;&nbsp; 流程标题：</td>
                        <td>
                            
                            <asp:TextBox ID="txtTitile" runat="server"></asp:TextBox>
                           
                        </td>
                    </tr>
                    <tr>
                        <td>
                            异常操作类型：
                        </td>
                        <td  style="text-align:left">
                            <asp:DropDownList ID="drpExList" runat="server">
                                <asp:ListItem>自动终止流程</asp:ListItem>
                                <asp:ListItem>自动终止任务</asp:ListItem>
                                <asp:ListItem>经办人手动终止流程</asp:ListItem>
                                <asp:ListItem>经办人手动终止任务</asp:ListItem>
                                <asp:ListItem>管理方手动终止流程</asp:ListItem>
                                <asp:ListItem>管理方手动终止任务</asp:ListItem>
                                <asp:ListItem>拒绝</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                            异常操作所在环节：</td>
                        <td>
                           <asp:TextBox ID="txtHuanjie" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            
                            任务编号：</td>
                        <td>
                           <asp:TextBox ID="txtTaskNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                            异常操作关闭环节：</td>
                        <td>
                            <asp:TextBox ID="txtCloseHuanjie" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            异常操作人：</td>
                        <td>
                            <asp:TextBox ID="txtExUser" runat="server"></asp:TextBox></td>
                        <td>
                            &nbsp;
                            异常操作部门：</td>
                        <td>
                            <asp:TextBox ID="txtExDep" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            异常操作时间：</td>
                        <td>
                            <asp:TextBox ID="txtExDate" runat="server" onClick="WdatePicker()"></asp:TextBox></td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                     <tr>
                        <td>
                            异常原因：</td>
                        <td colspan="3" style="text-align:left">
                            <asp:TextBox ID="txtExReason" runat="server" Height="64px" Width="351px"></asp:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            异常依据：</td>
                        <td colspan="3" style="text-align:left">
                            <asp:TextBox ID="txtExBasis" runat="server" Height="64px" Width="351px"></asp:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            后续措施：</td>
                        <td colspan="3" style="text-align:left">
                            <asp:RadioButton ID="rbtnYes" runat="server"  Text="需流程管理方人工干预" GroupName="1"/>
                           <asp:RadioButton ID="rbtnNo" runat="server" Text="无需流程管理方人工干预" GroupName="1"/>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <asp:Button ID="btnSubmit" runat="server" Text="确定"  CssClass="btnBg" OnClientClick="return CheckAll();" OnClick="btnSubmit_Click"/>
                        </td>
                        <td>
                            <asp:Button ID="btnCancle" runat="server" Text="取消"  CssClass="btnBg" OnClick="btnCancle_Click"/>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            
        </div>
        <div id="Div1">
        </div>
    </div>
            </div>
        </div>
    </div>
    </form>
  
</body>
</html>




